﻿namespace dk.Helper.Base.Core
{
    public class VillageGroup : IVillageGroup
    {
        public VillageGroup(string name, IGroupType groupType)
        {
            this.Name = name;
            this.GroupType = groupType;
            this.Villages = new Villages();
        }

        public IVillages Villages { get; private set; }

        public IGroupType GroupType { get; set; }

        public string Name { get; set; }

        public bool Contains(IVillage village)
        {
            return Villages.Contains(village);
        }

        public void AddVillage(IVillage village)
        {
            Villages.Add(village);
        }

        public void RemoveVillage(IVillage village)
        {
            Villages.Remove(village);
        }
    }
}